<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>优惠劵的添加</title>
    <script src="../js/jquery-2.1.4.js"></script>
    <script src="../js/vue.js"></script>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
          crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>
    <style>
        body{
            margin: 0px 0px;
        }
        #div {
            width: 100%;
            border: 1px solid rgb(225, 225, 225);
        }
        #content{
            width: 50%;
            height: 1000px;
            margin:0 auto;
        }
        .block{
            float: left;
        }
        .submit{
            margin-left: 450px ;
        }
    </style>
</head>
<body>
        <div id="div">
        <div style="margin: 20px;"></div>
            <div id="content">
        <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign">
            <el-form-item label="优惠劵名称">
                <el-input v-model="formLabelAlign.name"></el-input>
            </el-form-item>
            <el-form-item label="优惠劵解释">
                <el-input v-model="formLabelAlign.region"></el-input>
            </el-form-item>
            <el-form-item label="限制优惠劵的使用">
                <el-input v-model="formLabelAlign.type"></el-input>
            </el-form-item>
            <div class="block">
                <el-date-picker
                        v-model="value1"
                        type="datetime"
                        placeholder="选择起始日期时间">
                </el-date-picker>
            </div>
            <div class="blocks">
                <el-date-picker
                        v-model="value2"
                        type="datetime"
                        placeholder="选择结束日期时间">
                </el-date-picker>
            </div>
            <el-form-item label="发送总张数">
                <el-input v-model="formLabelAlign.number"></el-input>
            </el-form-item>
            <el-form-item label="优惠劵金额门槛">
                <el-input v-model="formLabelAlign.number"></el-input>
            </el-form-item>
            <el-form-item label="优惠金额">
                <el-input v-model="formLabelAlign.number"></el-input>
            </el-form-item>
            <el-form-item label="优惠类型">
                <el-input v-model="formLabelAlign.number"></el-input>
            </el-form-item>
            <el-form-item label="折扣">
                <el-input v-model="formLabelAlign.number"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button class="submit" type="primary" @click="submitForm">提交</el-button>
            </el-form-item>
        </el-form>
            </div>
        </div>
        <script>
            new Vue({
                el:"#div",
                data:{
                    labelPosition: 'top',
                    formLabelAlign: {
                        name: '',
                        region: '',
                        type: '',
                        number:''
                    },
                    value1: '',
                    value2: '',
                }
            });

        </script>
</body>

</html>